// SPDX-License-Identifier: GPL-2.0-or-later

#include <Snake/Field/AField.hpp>

#include <cstdint>
#include <cstddef>

#include <Snake/Position.hpp>
#include <Snake/Field/Tile.hpp>

AField::AField(uint8_t size) : size(size)
{
}

void AField::erase()
{
	for(uint8_t i = 0; i < this->size; ++i)
	{
		for(uint8_t j = 0; j < this->size; ++j)
		{
			this->setTile({i, j}, {Tile::Type::Background, Tile::Rotation::R0});
		}
	}
}
